﻿namespace Traceability.Domain
{
    /// <summary>
    /// 基础实体类，包含所有实体共用的属性
    /// </summary>
    public  class BaseEntity
    {
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreatedBy { get; set; } = string.Empty;

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedTime { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string? ModifiedBy { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ModifiedTime { get; set; }
        /// <summary>
        /// 删除人
        /// </summary>
        public string? DeleteBy {  get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? DeleteTime { get; set; }

        /// <summary>
        /// 是否删除（逻辑删除标志）
        /// </summary>
        public bool IsDeleted { get; set; }
    }
}
